#include "vector.cpp"
#include "timer.cpp"
int main(){
custom::Timer t1,t2,t3;
custom::vector<int> v1;
t1.start();
for(int i=0;i<10000;i++){
v1.push_back(i);
}
t1.stop();
std::cout<<"the runing time is "<<t1.elapsed<<"\n";
std::cout<<"Push complete!"<<"\n";
t2.start();
for(int i=0;i<10000;i++){
v1[i]+=1;
}
t2.end();
std::cout<<"the runing time is "<<t1.elapsed<<"\n";
std::cout<<"Modifify complate!"<<"\n";
t3.start();
for(int i=0;i<10000;i++){
v1.pop_back();
}
t3.end()clear;
std::cout<<"the runing time is "<<t3.elapsed<<"\n";
std::cout<<"Delete complate!"<<"\n";
std::cout<<"now the current size is "<<v1.size()<<"\n";
if(v1.empty){
std::cout<<"empty !\n";}else{
std::cout<<"not empty!\n";
}
return 0;
}
